<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>TileTexSet | ts</title>
	<meta name="description" content="Documentation for ts">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">ts</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_laya_map_tiletexset_.html">&quot;laya/map/TileTexSet&quot;</a>
				</li>
				<li>
					<a href="_laya_map_tiletexset_.tiletexset.html">TileTexSet</a>
				</li>
			</ul>
			<h1>Class TileTexSet</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p>此类是子纹理类，也包括同类动画的管理
							TiledMap会把纹理分割成无数子纹理，也可以把其中的某块子纹理替换成一个动画序列
							本类的实现就是如果发现子纹理被替换成一个动画序列，animationKey会被设为true
						即animationKey为true,就使用TileAniSprite来做显示，把动画序列根据时间画到TileAniSprite上</p>
					</div>
					<dl class="tsd-comment-tags">
						<dt>author</dt>
						<dd><p>...</p>
						</dd>
					</dl>
				</div>
			</section>
			<section class="tsd-panel tsd-hierarchy">
				<h3>Hierarchy</h3>
				<ul class="tsd-hierarchy">
					<li>
						<span class="target">TileTexSet</span>
					</li>
				</ul>
			</section>
			<section class="tsd-panel-group tsd-index-group">
				<h2>Index</h2>
				<section class="tsd-panel tsd-index-panel">
					<div class="tsd-index-content">
						<section class="tsd-index-section ">
							<h3>Properties</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#animationtotaltime" class="tsd-kind-icon">animation<wbr>Total<wbr>Time</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#durationtimearray" class="tsd-kind-icon">duration<wbr>Time<wbr>Array</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#gid" class="tsd-kind-icon">gid</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#isanimation" class="tsd-kind-icon">is<wbr>Animation</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#offx" class="tsd-kind-icon">offX</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#offy" class="tsd-kind-icon">offY</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#texture" class="tsd-kind-icon">texture</a></li>
								<li class="tsd-kind-property tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#texturearray" class="tsd-kind-icon">texture<wbr>Array</a></li>
							</ul>
						</section>
						<section class="tsd-index-section ">
							<h3>Methods</h3>
							<ul class="tsd-index-list">
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#addanisprite" class="tsd-kind-icon">add<wbr>Ani<wbr>Sprite</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#clearall" class="tsd-kind-icon">clear<wbr>All</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#removeanisprite" class="tsd-kind-icon">remove<wbr>Ani<wbr>Sprite</a></li>
								<li class="tsd-kind-method tsd-parent-kind-class"><a href="_laya_map_tiletexset_.tiletexset.html#showdebuginfo" class="tsd-kind-icon">show<wbr>Debug<wbr>Info</a></li>
							</ul>
						</section>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Properties</h2>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="animationtotaltime" class="tsd-anchor"></a>
					<h3>animation<wbr>Total<wbr>Time</h3>
					<div class="tsd-signature tsd-kind-icon">animation<wbr>Total<wbr>Time<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L31">laya/map/TileTexSet.ts:31</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>动画播放的总时间</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="durationtimearray" class="tsd-anchor"></a>
					<h3>duration<wbr>Time<wbr>Array</h3>
					<div class="tsd-signature tsd-kind-icon">duration<wbr>Time<wbr>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = null</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L29">laya/map/TileTexSet.ts:29</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>当前动画每帧的时间间隔</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="gid" class="tsd-anchor"></a>
					<h3>gid</h3>
					<div class="tsd-signature tsd-kind-icon">gid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = -1</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L17">laya/map/TileTexSet.ts:17</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>唯一标识</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="isanimation" class="tsd-anchor"></a>
					<h3>is<wbr>Animation</h3>
					<div class="tsd-signature tsd-kind-icon">is<wbr>Animation<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L33">laya/map/TileTexSet.ts:33</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>true表示当前纹理，是一组动画，false表示当前只有一个纹理</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="offx" class="tsd-anchor"></a>
					<h3>offX</h3>
					<div class="tsd-signature tsd-kind-icon">offX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L21">laya/map/TileTexSet.ts:21</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>纹理显示时的坐标偏移X</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="offy" class="tsd-anchor"></a>
					<h3>offY</h3>
					<div class="tsd-signature tsd-kind-icon">offY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L23">laya/map/TileTexSet.ts:23</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>纹理显示时的坐标偏移Y</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="texture" class="tsd-anchor"></a>
					<h3>texture</h3>
					<div class="tsd-signature tsd-kind-icon">texture<span class="tsd-signature-symbol">:</span> <a href="_laya_resource_texture_.texture.html" class="tsd-signature-type">Texture</a></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L19">laya/map/TileTexSet.ts:19</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>子纹理的引用</p>
						</div>
					</div>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
					<a name="texturearray" class="tsd-anchor"></a>
					<h3>texture<wbr>Array</h3>
					<div class="tsd-signature tsd-kind-icon">texture<wbr>Array<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = null</span></div>
					<aside class="tsd-sources">
						<ul>
							<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L27">laya/map/TileTexSet.ts:27</a></li>
						</ul>
					</aside>
					<div class="tsd-comment tsd-typography">
						<div class="lead">
							<p>当前要播放动画的纹理序列</p>
						</div>
					</div>
				</section>
			</section>
			<section class="tsd-panel-group tsd-member-group ">
				<h2>Methods</h2>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="addanisprite" class="tsd-anchor"></a>
					<h3>add<wbr>Ani<wbr>Sprite</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">add<wbr>Ani<wbr>Sprite<span class="tsd-signature-symbol">(</span>aniName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, sprite<span class="tsd-signature-symbol">: </span><a href="_laya_map_tileanisprite_.tileanisprite.html" class="tsd-signature-type">TileAniSprite</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L48">laya/map/TileTexSet.ts:48</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>加入一个动画显示对象到此动画中</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>aniName: <span class="tsd-signature-type">string</span></h5>
									<div class="tsd-comment tsd-typography">
										<p>//显示对象的名字</p>
									</div>
								</li>
								<li>
									<h5>sprite: <a href="_laya_map_tileanisprite_.tileanisprite.html" class="tsd-signature-type">TileAniSprite</a></h5>
									<div class="tsd-comment tsd-typography">
										<p>//显示对象</p>
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="clearall" class="tsd-anchor"></a>
					<h3>clear<wbr>All</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">clear<wbr>All<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L135">laya/map/TileTexSet.ts:135</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>清理</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="removeanisprite" class="tsd-anchor"></a>
					<h3>remove<wbr>Ani<wbr>Sprite</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">remove<wbr>Ani<wbr>Sprite<span class="tsd-signature-symbol">(</span>_name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L111">laya/map/TileTexSet.ts:111</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>移除不需要更新的SPRITE</p>
								</div>
							</div>
							<h4 class="tsd-parameters-title">Parameters</h4>
							<ul class="tsd-parameters">
								<li>
									<h5>_name: <span class="tsd-signature-type">string</span></h5>
									<div class="tsd-comment tsd-typography">
									</div>
								</li>
							</ul>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
						</li>
					</ul>
				</section>
				<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
					<a name="showdebuginfo" class="tsd-anchor"></a>
					<h3>show<wbr>Debug<wbr>Info</h3>
					<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
						<li class="tsd-signature tsd-kind-icon">show<wbr>Debug<wbr>Info<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
					</ul>
					<ul class="tsd-descriptions">
						<li class="tsd-description">
							<aside class="tsd-sources">
								<ul>
									<li>Defined in <a href="https://github.com/layabox/LayaAir/blob/428b7e7e/src/layaAir/laya/map/TileTexSet.ts#L124">laya/map/TileTexSet.ts:124</a></li>
								</ul>
							</aside>
							<div class="tsd-comment tsd-typography">
								<div class="lead">
									<p>显示当前动画的使用情况</p>
								</div>
							</div>
							<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
						</li>
					</ul>
				</section>
			</section>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="../globals.html"><em>Globals</em></a>
					</li>
					<li class="current tsd-kind-module">
						<a href="../modules/_laya_map_tiletexset_.html">&quot;laya/map/<wbr>Tile<wbr>Tex<wbr>Set&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
				<ul class="current">
					<li class="current tsd-kind-class tsd-parent-kind-module">
						<a href="_laya_map_tiletexset_.tiletexset.html" class="tsd-kind-icon">Tile<wbr>Tex<wbr>Set</a>
						<ul>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#animationtotaltime" class="tsd-kind-icon">animation<wbr>Total<wbr>Time</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#durationtimearray" class="tsd-kind-icon">duration<wbr>Time<wbr>Array</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#gid" class="tsd-kind-icon">gid</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#isanimation" class="tsd-kind-icon">is<wbr>Animation</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#offx" class="tsd-kind-icon">offX</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#offy" class="tsd-kind-icon">offY</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#texture" class="tsd-kind-icon">texture</a>
							</li>
							<li class=" tsd-kind-property tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#texturearray" class="tsd-kind-icon">texture<wbr>Array</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#addanisprite" class="tsd-kind-icon">add<wbr>Ani<wbr>Sprite</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#clearall" class="tsd-kind-icon">clear<wbr>All</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#removeanisprite" class="tsd-kind-icon">remove<wbr>Ani<wbr>Sprite</a>
							</li>
							<li class=" tsd-kind-method tsd-parent-kind-class">
								<a href="_laya_map_tiletexset_.tiletexset.html#showdebuginfo" class="tsd-kind-icon">show<wbr>Debug<wbr>Info</a>
							</li>
						</ul>
					</li>
				</ul>
				<ul class="after-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer>
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
				<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
				<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
				<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>